home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / 204fd.lzh / dos_lib.fd < prev    next >
Text File  |  1991-03-14  |  6KB  |  202 lines

  1. * "dos.library"
  2. ##base _DOSBase
  3. ##bias 30
  4. ##public
  5. Open(name,accessMode)(d1/d2)
  6. Close(file)(d1)
  7. Read(file,buffer,length)(d1/d2/d3)
  8. Write(file,buffer,length)(d1/d2/d3)
  9. Input()()
  10. Output()()
  11. Seek(file,position,offset)(d1/d2/d3)
  12. DeleteFile(name)(d1)
  13. Rename(oldName,newName)(d1/d2)
  14. Lock(name,type)(d1/d2)
  15. UnLock(lock)(d1)
  16. DupLock(lock)(d1)
  17. Examine(lock,fileInfoBlock)(d1/d2)
  18. ExNext(lock,fileInfoBlock)(d1/d2)
  19. Info(lock,parameterBlock)(d1/d2)
  20. CreateDir(name)(d1)
  21. CurrentDir(lock)(d1)
  22. IoErr()()
  23. CreateProc(name,pri,segList,stackSize)(d1/d2/d3/d4)
  24. Exit(returnCode)(d1)
  25. LoadSeg(name)(d1)
  26. UnLoadSeg(seglist)(d1)
  27. ##private
  28. ClearVec(bVector,upb)(d1/d2)
  29. NoReqLoadSeg(bFileName)(d1)
  30. ##public
  31. DeviceProc(name)(d1)
  32. SetComment(name,comment)(d1/d2)
  33. SetProtection(name,protect)(d1/d2)
  34. DateStamp(date)(d1)
  35. Delay(timeout)(d1)
  36. WaitForChar(file,timeout)(d1/d2)
  37. ParentDir(lock)(d1)
  38. IsInteractive(file)(d1)
  39. Execute(string,file,file2)(d1/d2/d3)
  40. *--- functions in V36 or higher (distributed as Release 2.0) ---
  41. *    DOS Object creation/deletion
  42. AllocDosObject(type,tags)(d1/d2)
  43. FreeDosObject(type,ptr)(d1/d2)
  44. *    Packet Level routines
  45. DoPkt(port,action,arg1,arg2,arg3,arg4,arg5)(d1/d2/d3/d4/d5/d6/d7)
  46. SendPkt(dp,port,replyport)(d1/d2/d3)
  47. WaitPkt()()
  48. ReplyPkt(dp,res1,res2)(d1/d2/d3)
  49. AbortPkt(port,pkt)(d1/d2)
  50. *    Record Locking
  51. LockRecord(fh,offset,length,mode,timeout)(d1/d2/d3/d4/d5)
  52. LockRecords(recArray,timeout)(d1/d2)
  53. UnLockRecord(fh,offset,length)(d1/d2/d3)
  54. UnLockRecords(recArray)(d1)
  55. *    Buffered File I/O
  56. SelectInput(fh)(d1)
  57. SelectOutput(fh)(d1)
  58. FGetC(fh)(d1)
  59. FPutC(fh,ch)(d1/d2)
  60. UnGetC(fh,character)(d1/d2)
  61. FRead(fh,block,blocklen,number)(d1/d2/d3/d4)
  62. FWrite(fh,block,blocklen,number)(d1/d2/d3/d4)
  63. FGets(fh,buf,buflen)(d1/d2/d3)
  64. FPuts(fh,str)(d1/d2)
  65. VFWritef(fh,format,argarray)(d1/d2/d3)
  66. VFPrintf(fh,format,argarray)(d1/d2/d3)
  67. Flush(fh)(d1)
  68. SetVBuf(fh,buff,type,size)(d1/d2/d3/d4)
  69. *    DOS Object Management
  70. DupLockFromFH(fh)(d1)
  71. OpenFromLock(lock)(d1)
  72. ParentOfFH(fh)(d1)
  73. ExamineFH(fh,fib)(d1/d2)
  74. SetFileDate(name,date)(d1/d2)
  75. NameFromLock(lock,buffer,len)(d1/d2/d3)
  76. NameFromFH(fh,buffer,len)(d1/d2/d3)
  77. SplitName(name,seperator,buf,oldpos,size)(d1/d2/d3/d4/d5)
  78. SameLock(lock1,lock2)(d1/d2)
  79. SetMode(fh,mode)(d1/d2)
  80. ExAll(lock,buffer,size,data,control)(d1/d2/d3/d4/d5)
  81. ReadLink(port,lock,path,buffer,size)(d1/d2/d3/d4/d5)
  82. MakeLink(name,dest,soft)(d1/d2/d3)
  83. ChangeMode(type,fh,newmode)(d1/d2/d3)
  84. SetFileSize(fh,pos,mode)(d1/d2/d3)
  85. *    Error Handling
  86. SetIoErr(result)(d1)
  87. Fault(code,header,buffer,len)(d1/d2/d3/d4)
  88. PrintFault(code,header)(d1/d2)
  89. ErrorReport(code,type,arg1,device)(d1/d2/d3/d4)
  90. *--- (1 function slot reserved here) ---
  91. ##bias 492
  92. *    Process Management
  93. Cli()()
  94. CreateNewProc(tags)(d1)
  95. RunCommand(seg,stack,paramptr,paramlen)(d1/d2/d3/d4)
  96. GetConsoleTask()()
  97. SetConsoleTask(task)(d1)
  98. GetFileSysTask()()
  99. SetFileSysTask(task)(d1)
  100. GetArgStr()()
  101. SetArgStr(string)(d1)
  102. FindCliProc(num)(d1)
  103. MaxCli()()
  104. SetCurrentDirName(name)(d1)
  105. GetCurrentDirName(buf,len)(d1/d2)
  106. SetProgramName(name)(d1)
  107. GetProgramName(buf,len)(d1/d2)
  108. SetPrompt(name)(d1)
  109. GetPrompt(buf,len)(d1/d2)
  110. SetProgramDir(lock)(d1)
  111. GetProgramDir()()
  112. *    Device List Management
  113. SystemTagList(command,tags)(d1/d2)
  114. AssignLock(name,lock)(d1/d2)
  115. AssignLate(name,path)(d1/d2)
  116. AssignPath(name,path)(d1/d2)
  117. AssignAdd(name,lock)(d1/d2)
  118. RemAssignList(name,lock)(d1/d2)
  119. GetDeviceProc(name,dp)(d1/d2)
  120. FreeDeviceProc(dp)(d1)
  121. LockDosList(flags)(d1)
  122. UnLockDosList(flags)(d1)
  123. AttemptLockDosList(flags)(d1)
  124. RemDosEntry(dlist)(d1)
  125. AddDosEntry(dlist)(d1)
  126. FindDosEntry(dlist,name,flags)(d1/d2/d3)
  127. NextDosEntry(dlist,flags)(d1/d2)
  128. MakeDosEntry(name,type)(d1/d2)
  129. FreeDosEntry(dlist)(d1)
  130. IsFileSystem(name)(d1)
  131. *    Handler Interface
  132. Format(filesystem,volumename,dostype)(d1/d2/d3)
  133. Relabel(drive,newname)(d1/d2)
  134. Inhibit(name,onoff)(d1/d2)
  135. AddBuffers(name,number)(d1/d2)
  136. *    Date, Time Routines
  137. CompareDates(date1,date2)(d1/d2)
  138. DateToStr(datetime)(d1)
  139. StrToDate(datetime)(d1)
  140. *    Image Management
  141. InternalLoadSeg(fh,table,funcarray,stack)(d0/a0/a1/a2)
  142. InternalUnLoadSeg(seglist,freefunc)(d1/a1)
  143. NewLoadSeg(file,tags)(d1/d2)
  144. AddSegment(name,seg,system)(d1/d2/d3)
  145. FindSegment(name,seg,system)(d1/d2/d3)
  146. RemSegment(seg)(d1)
  147. *    Command Support
  148. CheckSignal(mask)(d1)
  149. ReadArgs(template,array,args)(d1/d2/d3)
  150. FindArg(keyword,template)(d1/d2)
  151. ReadItem(name,maxchars,cSource)(d1/d2/d3)
  152. StrToLong(string,value)(d1/d2)
  153. MatchFirst(pat,anchor)(d1/d2)
  154. MatchNext(anchor)(d1)
  155. MatchEnd(anchor)(d1)
  156. ParsePattern(pat,buf,buflen)(d1/d2/d3)
  157. MatchPattern(pat,str)(d1/d2)
  158. ##private
  159. * Not currently implemented.
  160. DosNameFromAnchor(anchor,buffer,len)(d1/d2/d3)
  161. ##public
  162. FreeArgs(args)(d1)
  163. *--- (1 function slot reserved here) ---
  164. ##bias 870
  165. FilePart(path)(d1)
  166. PathPart(path)(d1)
  167. AddPart(dirname,filename,size)(d1/d2/d3)
  168. *    Notification
  169. StartNotify(notify)(d1)
  170. EndNotify(notify)(d1)
  171. *    Environment Variable functions
  172. SetVar(name,buffer,size,flags)(d1/d2/d3/d4)
  173. GetVar(name,buffer,size,flags)(d1/d2/d3/d4)
  174. DeleteVar(name,flags)(d1/d2)
  175. FindVar(name,type)(d1/d2)
  176. CliInit(dp)(a0)
  177. CliInitNewcli(dp)(a0)
  178. CliInitRun(dp)(a0)
  179. WriteChars(buf,buflen)(d1/d2)
  180. PutStr(str)(d1)
  181. VPrintf(format,argarray)(d1/d2)
  182. *--- (1 function slot reserved here) ---
  183. ##bias 966
  184. * these were unimplemented until dos 36.147
  185. ParsePatternNoCase(pat,buf,buflen)(d1/d2/d3)
  186. MatchPatternNoCase(pat,str)(d1/d2)
  187. ##private
  188. DosGetString(num)(d1)
  189. ##public
  190. * this was added for V37 dos, returned 0 before then.
  191. SameDevice(lock1,lock2)(d1/d2)
  192. * These were added in dos 36.147
  193. *--- (4 function slots reserved here) ---
  194. ##bias 1014
  195. * these were added in dos 37.1
  196. *--- (2 function slots reserved here) ---
  197. ##bias 1026
  198. * these were added in dos 37.8
  199. *--- (2 function slots reserved here) ---
  200. ##bias 1038
  201. ##end
  202.